{extend name="public:layout" /}
{block name="title"}充值提现{/block}
{block name="head"}
{:widget('common/Form/icheckRes')}
{:widget('common/Form/validRes')}
{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                {eq name="myaccount" value="1"}
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('User/index',['utype'=>'member'])}">会员列表</a></li>
                <li><a href="{:url('UserMemberAccount/index',['myaccount'=>1,'searchText'=>$info['username']])}"> 资金记录</a></li>
                {else/}
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('UserMemberAccount/index')}"> 资金记录</a></li>
                {/eq}
                <li class="active">帐户调节</li>
            </ol>
        </div>
        <div class="ibox-content">
            <form method="post" class="form-horizontal" id="form">
                <input type="hidden" name="uid" value="{$info.uid}" />
                <input type="hidden" name="username" value="{$info.username}" />
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">用户名</label>
                    <div class="col-sm-4">
                        <p class="form-control-static">{$info.username}</p>
                    </div>
                </div>
                <div class="form-group" id="type">
                    <label class="col-sm-2 control-label Validform_label">帐户变动原因</label>
                    <div class="col-sm-4">
                        <textarea name="change_desc" class="form-control" datatype="*"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">可用资金</label>
                    <div class="col-sm-2">
                        <select name="user_money[plus]" class="form-control">
                            <option value="1">增加</option>
                            <option value="-1">减少</option>
                        </select>
                    </div>
                    <div class="col-sm-2">
                        <input type="text" class="form-control" name="user_money[value]" value="" datatype="n"/>
                    </div>
                    <p class="help-block">当前用户可用资金：{$info.user_money}元</p>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">可用积分</label>
                    <div class="col-sm-2">
                        <select name="pay_points[plus]" class="form-control">
                            <option value="1">增加</option>
                            <option value="-1">减少</option>
                        </select>
                    </div>
                    <div class="col-sm-2">
                        <input type="text" class="form-control" name="pay_points[value]" value="" datatype="n"/>
                    </div>
                    <p class="help-block">当前用户可用积分：{$info.pay_points}</p>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button class="btn btn-primary"
                                onclick="ajaxSubForm();" type="submit">
                            保存内容
                        </button>
                        <a href="{:url('index')}" class="btn btn-white">取消</a>
                        <span id="validError"></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    $(function () {
        iCheck();
    });
</script>
{/block}